package io.renren.modules.jxgk.service.impl;

import io.renren.modules.jxgk.dao.SchoolAnnouncementDao;
import io.renren.modules.jxgk.entity.SchoolAnnouncementEntity;
import io.renren.modules.jxgk.service.SchoolAnnouncementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SchoolAnnouncementServiceImpl implements SchoolAnnouncementService{
    @Autowired
    SchoolAnnouncementDao schoolAnnouncementDao;
    public List<SchoolAnnouncementEntity> queryList(Map<String, Object> map){
        return schoolAnnouncementDao.queryList(map);
    }
    public int queryTotal(Map<String, Object> map){
        return  schoolAnnouncementDao.queryTotal(map);
    }
    public void deleteBatch(String[] termIds){
        schoolAnnouncementDao.deleteBatch(termIds);
    }
    public void save(SchoolAnnouncementEntity ste){
        schoolAnnouncementDao.save(ste);
    }
    public SchoolAnnouncementEntity queryObject(String index){
        return schoolAnnouncementDao.queryObject(index);
    }
    public void update(SchoolAnnouncementEntity ste){
        schoolAnnouncementDao.update(ste);
    }
}
